﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using MongoDB.Driver;

namespace MongoDBDemo
{
    public static class MongoHelper<T> where T : class
    {
        public async static Task Insert(IMongoCollection<T> coll, T entity)
        {
            await coll.InsertOneAsync(entity);
        }
    }
}
